package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.ShopService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 2025/5/8 16:54
 */
@RestController("userShop")
@RequestMapping("/user/shop")
@AllArgsConstructor
@Slf4j
@Api(tags = "用户端店铺相关接口")
public class ShopController {
    private ShopService shopService;

    /**
     * 获取店铺营业状态
     */
    @GetMapping("/status")
    public Result<Integer> getStatus() {
        log.info("获取店铺营业状态");
        Integer status = shopService.getStatus();
        return Result.success(status);
    }

}
